<template>
  <div class="tab">
    <van-tabbar route v-model="active" active-color="darkred">
      <van-tabbar-item name="home" icon="home-o" to="/home"
        >首页</van-tabbar-item
      >
      <van-tabbar-item name="topic" icon="label-o" to="/topic"
        >专题</van-tabbar-item
      >
      <van-tabbar-item name="catalog" icon="apps-o" to="/catalog"
        >分类</van-tabbar-item
      >
      <van-tabbar-item name="cart" icon="cart-o" to="/cart"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item name="user" icon="user-o" to="/user"
        >我的</van-tabbar-item
      >
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: "home",
    };
  },
  methods: {},
};
</script>
 
<style lang = "less" scoped>
.tab {
  position: fixed;
  bottom: 0;
  left: 0;
}
</style>